var gulp = require('gulp');
var shell = require('gulp-shell');
var elixir = require('laravel-elixir');

var Task = elixir.Task;

elixir.extend('langjs', function (path) {
    return new Task('langjs', function () {
        gulp.src('').pipe(shell('php artisan lang:js ' + (path || 'public/js/messages.js')));
    }).watch('./resources/lang/**');
});
